/**
    Copyright (C) 2011  Alexander Vollmer

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jefb.entity.dto;

import java.io.Serializable;

public class FileToken implements Serializable {

	private static final long serialVersionUID = 5605688909045134734L;

	private String senderAgentId;
	private byte[] sessionId;
	private String filename;
	private String path;
	private Long length;
	private Long offset;
	private Long fileLength;
	private byte[] data;

	public FileToken() {
		super();
	}

	public FileToken(String filename, Long length, Long offset, byte[] data) {
		super();
		this.filename = filename;
		this.length = length;
		this.offset = offset;
		this.data = data;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public Long getLength() {
		return length;
	}

	public void setLength(Long length) {
		this.length = length;
	}

	public Long getOffset() {
		return offset;
	}

	public void setOffset(Long offset) {
		this.offset = offset;
	}

	public byte[] getData() {
		return data;
	}

	public void setData(byte[] data) {
		this.data = data;
	}

	public void setFileLength(Long fileLength) {
		this.fileLength = fileLength;
	}

	public Long getFileLength() {
		return fileLength;
	}

	public void setSenderAgentId(String senderAgentId) {
		this.senderAgentId = senderAgentId;
	}

	public String getSenderAgentId() {
		return senderAgentId;
	}

	public void setSessionId(byte[] sessionId) {
		this.sessionId = sessionId;
	}

	public byte[] getSessionId() {
		return sessionId;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getPath() {
		return path;
	}

}
